package com.jinzheng.qhnetty.commont.waitnetty;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class InitNettyService  implements ApplicationRunner {

    @Resource
    private SocketServer socketServer;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        socketServer.start();
    }
}
